You can define several special purpose functions in your Class Module in addition to the User
Function UFInitialize: Integer; Function UFTerminate: Integer; Procedure UFStartJob (job: Integer) Procedure UFEndJob (job: Integer)
Be sure to declare the methods in your code exactly as they appear above. If not declared correctly, they will be ignored by Crystal Reports. These methods are completely optional when creating your Delphi Automation Server. They are provided to assist you with the design of your User
This function is called just after the DLL is loaded into memory. Use this function to handle one
Returns a value of 0 (zero) to indicate successful initialization. Any non
This function is called just before the DLL is unloaded from memory. Use this function to clean up any allocated memory or other data before unloading the DLL.
Returns a value of 0 (zero) when finished cleaning up memory.
This procedure is called by Crystal Reports just before User
This procedure is called by Crystal Reports when the current job finishes, which happens when all pages of a report have been generated, before UFStartJob is called again, or before UFTerminate is called. This function also accepts the Crystal Reports job number as its only parameter. Handle any clean
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |